#ifndef MAINWIDGET_H
#define MAINWIDGET_H

#include <QWidget>
#include <QLayout>
#include <QProcess>
#include <QDebug>
#include <QMessageBox>
#include <DMainWindow>

#include "sucessconnectwidget.h"
#include "failcontentwidget.h"

DWIDGET_USE_NAMESPACE

class MainWindow : public DMainWindow
{
    Q_OBJECT
public:
    explicit MainWindow(QWidget *parent = nullptr);

signals:

public slots:
    void on_readoutput();
    void on_readError();
    void runBash();

private:
    SucessConnectWidget *sucessContentWidget;
    FailContentWidget *failContentWidget;
    bool isSucessed; // 是否连接成功

    QProcess * startProcess;

    QString deviceString="";

    bool isConnectSucess();


};

#endif // MAINWIDGET_H
